<html>
<head>
<title>Overview</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<script language="JavaScript" src="../../_sharedassets/pages.js"></script>
</head>
<body>
<table class="nav" width="100%" border="0" cellpadding="0" cellspacing="0"><tr><td width="93%" align="left"></td>
    <td width="7%"><div align="right"><a href="FStEngOneFive_85.html"><img src="../../_sharedassets/previous.gif" alt="Previous" border="0"></a><img src="../../_sharedassets/shim.gif" width="10" height="1"><a href="FStEngOneFive_103.html"><img src="../../_sharedassets/next.gif" alt="Next" border="0"></a></div></td>
  </tr><tr><td colspan="2"><img src="../../_sharedassets/shim.gif" height="4" width="1"></td></tr><tr><td colspan="2"><img src="../../_sharedassets/pixel.gif" height="1" width="100%"></td></tr><tr><td colspan="2"><img src="../../_sharedassets/shim.gif" height="11" width="1"></td></tr></table>
<h1>trans</h1>
<h4>Description</h4>
<p>The simple transition is one from a source state to a target sibling state 
  (i.e., at the same level in the hierarchical network). Simple transitions have 
  a completely specified source and target, though the target can be the history 
  node (last state visited, determined at transition time). Simple transitions 
  are distinguished from multi-level transitions, or <font face="Courier New, Courier, mono">transLvl</font>.</p>
<h4>Usage</h4>
<pre><i>new trans(fn, targetStateID, histFlag);</i>
</pre>
<h4>Parameters</h4>
<p><i>fn</i> Function to execute when this transition fires</p>
<p><i>targetStateID</i> ID of the target state, if not using the history mechanism</p>
<p><i>histFlag </i>Boolean value indicating whether to use the last state visited 
  (history). If this is true (it is not, by default), then the <font face="Courier New, Courier, mono">targetStateID</font> 
  is ignored. </p>
<h4>Example</h4>
<pre>
<i>// This is a transition from myState to its sibling (identified as #2)
myState.addTrans(0, new trans(myTransFn, 2));</i></pre>
<h4>Code Hint</h4>
<p>Variable names with the suffix &quot;_trans&quot; are recognized for the sake 
  of codehinting, as simple transitions.</p>
<p>&nbsp;</p>
<table class="nav" width="100%" border="0" cellpadding="0" cellspacing="0"><tr><td colspan="2"><img src="../../_sharedassets/shim.gif" height="6" width="1"></td></tr><tr><td colspan="2"><img src="../../_sharedassets/pixel.gif" height="1" width="100%"></td></tr><tr><td colspan="2"><img src="../../_sharedassets/shim.gif" height="4" width="1"></td></tr><tr><td width="94%" align="left"></td>
    <td width="6%"><div align="right"><a href="FStEngOneFive_85.html"><img src="../../_sharedassets/previous.gif" alt="Previous" border="0"></a><img src="../../_sharedassets/shim.gif" width="10" height="1"><a href="FStEngOneFive_103.html"><img src="../../_sharedassets/next.gif" alt="Next" border="0"></a></div></td>
  </tr></table>
</body>
</html>